package com.szq.pattern.base.impl;

import com.szq.pattern.base.DataLoader;

/**
 * @description:
 * @author: szq
 * @date: 2021-09-09 08:12:24
 */
public class DataLoaderDecorator implements DataLoader {

    private DataLoader wrapper;
    public DataLoaderDecorator(DataLoader wrapper) {
        this.wrapper = wrapper;
    }
    @Override
    public String read() {
        return wrapper.read();
    }
    @Override
    public void write(String data) {
        wrapper.write(data);
    }
}
